package com.school.gmz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@TableName("stufdback") // mybatis-plus
@ApiModel(description = "学生反馈实体") // 描述实体的用途
@Data
public class StuFdBack {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID", notes = "学生反馈的唯一标识", position = 1)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Integer id;

    @ApiModelProperty(value = "姓名", notes = "反馈学生的姓名", position = 2)
    private String name;

    @ApiModelProperty(value = "班级", notes = "学生的班级", position = 3)
    private String classes;

    @ApiModelProperty(value = "年级", notes = "学生所在的年级", position = 4)
    private String grade;

    @ApiModelProperty(value = "反馈内容", notes = "学生反馈的具体内容", position = 5)
    private String fdback;

    @ApiModelProperty(value = "反馈时间", notes = "反馈的时间", position = 6)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;
}